/*
Problem Description
Give you two numbers A and B, if A is equal to B, you should print "YES", or print "NO".
 

Input
each test case contains two numbers A and B.
 

Output
for each case, if A is equal to B, you should print "YES", or print "NO".
 

Sample Input
1 2
2 2
3 3
4 3
 

Sample Output
NO
YES
YES
NO
 */
package com.yuan.algorithms.training20150807;

import java.math.BigDecimal;
import java.util.Scanner;

/**
 * @author YouYuan
 * @eMail E-mail:1265161633@qq.com
 * @Time 创建时间：2015年8月10日 上午9:26:01
 * @Explain 说明:
 */
public class 大数判断是否相等 {

	static Scanner in = new Scanner(System.in);
	public static void main(String[] args) {
		while(in.hasNext()) {
			BigDecimal a = new BigDecimal(in.next());
			BigDecimal b = new BigDecimal(in.next());
			if (a.compareTo(b)==0) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	}

}
